﻿using Future.Model.CacheModel;
using Future.Web.Extensions;
using Microsoft.AspNetCore.Authorization;

namespace Future.Web.Controllers
{
    /// <summary>
    /// 鉴权控制器基类
    /// </summary>
    [Authorize]
    public class AuthorizeController : BaseController
    {
        /// <summary>
        /// 当前登录用户
        /// </summary>
        protected UserCacheModel CurrentUser { get { return HttpContext.GetUserIdInfo(); } }


    }
}
